FROM tiangolo/uvicorn-gunicorn:python3.10-slim

LABEL maintainer="qinzl <douglaskiller@163.com>"

COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

WORKDIR /app
COPY ./src /app

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]